//
//  TGDataTool.h
//  GroupBuy
//
//  Created by wwj on 15/11/3.
//  Copyright © 2015年 wwj. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TGCityModel.h"
@class TGOrderModel;

@interface TGDataTool : NSObject
/** 所有城市数据 */
@property (strong, nonatomic) NSMutableDictionary *dictCitySection;
/** 所有城市组数据 */
@property (strong, nonatomic) NSArray *totalCityGrouyArray;
/** 所有分类数据 */
@property (strong, nonatomic) NSArray *categoryArray;
/** 添加排序 */
@property (strong, nonatomic) NSArray *orderArray;

/** 当前城市 */
@property (strong, nonatomic) TGCityModel *currentCity;

@property (copy, nonatomic) NSString *currentCategory;
@property (copy, nonatomic) NSString *currentDistrict;
@property (strong, nonatomic) TGOrderModel *currentOrder;

+ (instancetype)shareDataTool;

-(TGOrderModel *)getOrderWithName:(NSString *)name;

-(TGCityModel *)getCityWithName:(NSString *)name;

/**
 *  通过分类名称取得图标
 *
 *  @param name
 *
 *  @return 
 */
- (NSString *)iconWithCategoryName:(NSString *)name;
@end
